<?php

namespace App\Http\Requests\Api;

class GenerateSchemeRequest extends FormRequest
{
    public function rules()
    {
        $arr = [
            'path' => 'required|string',
            'env_version' => 'required|in:release,trial,develop'
        ];
        return $arr;
    }

    public function attributes()
    {
        return [
            'path' => '小程序路径',
            'env_version'   => '小程序版本',
        ];
    }
}
